<%@ page import="biz.UsersBiz" %>
<%@ page import="bean.UsersInfo" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    UsersBiz ub = new UsersBiz();
    String name = request.getParameter("name");
    String pass = request.getParameter("pass");
    UsersInfo ui = new UsersInfo();
    ui.setUserName(name);
    ui.setPassWord(pass);
    ui = ub.findUsers(ui);
    if (ui==null){
        session.setAttribute("RERROR","你的账号或密码错误！");
        response.sendRedirect("c1.jsp");
    }else {
        session.setAttribute("USER_INFO",ui);
        response.sendRedirect("c3.jsp");
    }
%>
